package cn.sunxyz.aop.proxy;

import net.sf.cglib.proxy.Enhancer;
import net.sf.cglib.proxy.MethodInterceptor;

/**
 * Created by yangrd on 2017/5/25.
 */
interface Proxy extends MethodInterceptor {

    default <T> T getProxy(Class<T> cls) {
        return (T) Enhancer.create(cls, this);
    }
}
